package top.zywork.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.zywork.dao.GoodsBrandDAO;
import top.zywork.dos.GoodsBrandDO;
import top.zywork.dto.GoodsBrandDTO;
import top.zywork.service.AbstractBaseService;
import top.zywork.service.GoodsBrandService;

import javax.annotation.PostConstruct;

/**
 * GoodsBrandServiceImpl服务接口实现类<br/>
 *
 * 创建于2019-08-22<br/>
 *
 * @author http://zywork.top 王振宇
 * @version 1.0
 */
@Service(value = "goodsBrandService")
public class GoodsBrandServiceImpl extends AbstractBaseService implements GoodsBrandService {

    private GoodsBrandDAO goodsBrandDAO;

    @Autowired
    public void setGoodsBrandDAO(GoodsBrandDAO goodsBrandDAO) {
        super.setBaseDAO(goodsBrandDAO);
        this.goodsBrandDAO = goodsBrandDAO;
    }

    @PostConstruct
    public void init() {
        super.init(GoodsBrandDO.class, GoodsBrandDTO.class);
    }
}
